#ifndef COLORWIDGET_H
#define COLORWIDGET_H

#include <QWidget>


namespace Ui {
    class ColorWidget;
}
class Material;
class Object;


class ColorWidget : public QWidget
{
    Q_OBJECT

public:
    explicit ColorWidget(QWidget *parent = 0);
    ~ColorWidget();

public slots:
    void setObject(Object *);

signals:
    void updated();

public slots:
    void setColor(int r, int g, int b);

private slots:
    void onColorChanged();
    void onDiffuseButton();
    void onSpecularButton();
    void onShininessButton();
    void onShininessChanged();
    void onIndexChanged(int);

private:
    Ui::ColorWidget *ui;

    Material* material;
};

#endif // COLORWIDGET_H
